/*
 * @Author: zhangyi
 * @Date: 2025-03-20 08:25:07
 * @LastEditors: your name
 * @LastEditTime: 2025-04-02 09:09:06
 * @Description: 
 * @FilePath: \RuoYi-Vue3\src\api\quoteSystem\api.js
 */
import request from '@/utils/request'

/************************  物料管理  ****************************/ 

// 添加物料信息
export const AddMaterials = (data) => {
  return request({
    url: '/wms/MaterialManage/AddMaterials',
    method: 'post',
    data:data
  })
}
// 修改物料信息
export const EditMaterials = (data) => {
  return request({
    url: '/wms/MaterialManage/EditMaterials',
    method: 'post',
    data:data
  })
}
// 修改物料信息-- 报价使用
export const EditMaterialPrice = (data) => {
  return request({
    url: '/wms/MaterialManage/EditMaterialPrice',
    method: 'post',
    data:data
  })
}
// 查询物料信息
export const GetMaterialList = (data) => {
  return request({
    url: '/wms/MaterialManage/GetMaterialList',
    method: 'post',
    data:data
  })
}
// 查询物料信息
export const GetMaterialPriceList = (data) => {
  return request({
    url: '/wms/MaterialManage/GetMaterialPriceList',
    method: 'post',
    data:data
  })
}
// 查询物料信息-分页
export const GetMaterialPageList = (data) => {
  return request({
    url: '/wms/MaterialManage/GetMaterialPageList',
    method: 'post',
    data:data
  })
}
// 删除物料
export const DeleteMaterial = (data) => {
  return request({
    url: '/wms/MaterialManage/DeleteMaterial',
    method: 'post',
    data:data
  })
}
// 批量删除
export const MergeMaterial = (data) => {
  return request({
    url: '/wms/MaterialManage/MergeMaterial',
    method: 'post',
    data:data
  })
}
// 删除物料--顺便删除价格
export const DeletePrice = (data) => {
  return request({
    url: '/wms/MaterialManage/DeletePrice',
    method: 'post',
    data:data
  })
}

// 	查询单条物料信息
export const GetMaterial = (data) => {
  return request({
    url: '/wms/MaterialManage/GetMaterial',
    method: 'post',
    data:data
  })
}

/************************  物料报价系统码表管理类  ****************************/ 

// 添加分类信息
export const AddClassCode = (data) => {
  return request({
    url: '/wms/WmsCode/AddClassCode',
    method: 'post',
    data:data
  })
}
// 添加码表信息
export const AddWmsCode = (data) => {
  return request({
    url: '/wms/WmsCode/AddWmsCode',
    method: 'post',
    data:data
  })
}
// 删除分类记录
export const DeleteClassCode = (data) => {
  return request({
    url: '/wms/WmsCode/DeleteClassCode',
    method: 'post',
    data:data
  })
}
// 删除码表记录
export const DeleteCode = (data) => {
  return request({
    url: '/wms/WmsCode/DeleteCode',
    method: 'post',
    data:data
  })
}
// 查询分类信息
export const GetClassCodeByGroup = (data) => {
  return request({
    url: '/wms/WmsCode/GetClassCodeByGroup',
    method: 'post',
    data:data
  })
}
// 查询码表信息
export const GetCodeByGroup = (data) => {
  return request({
    url: '/wms/WmsCode/GetCodeByGroup',
    method: 'post',
    data:data
  })
}
// 为下拉控件查询码表
export const GetCodeForDPL = (data) => {
  return request({
    url: '/wms/WmsCode/GetCodeForDPL',
    method: 'post',
    data:data
  })
}
// 分页查询分类信息
export const GetPageClassCodeByGroup = (data) => {
  return request({
    url: '/wms/WmsCode/GetPageClassCodeByGroup',
    method: 'post',
    data:data
  })
}
// 分页查询码表信息
export const GetPageCodeByGroup = (data) => {
  return request({
    url: '/wms/WmsCode/GetPageCodeByGroup',
    method: 'post',
    data:data
  })
}
// 修改分类信息
export const UpdateClassCode = (data) => {
  return request({
    url: '/wms/WmsCode/UpdateClassCode',
    method: 'post',
    data:data
  })
}
// 修改码表信息
export const UpdateCode = (data) => {
  return request({
    url: '/wms/WmsCode/UpdateCode',
    method: 'post',
    data:data
  })
}
// 为下拉控件查询码表父节点
export const FindPraentClass = (data) => {
  return request({
    url: '/wms/WmsCode/FindPraentClass',
    method: 'post',
    data:data
  })
}

/************************  询价、报价管理类  ****************************/ 

// 	根据Excel文件明获取列表
export const GetPomlistByFileName = (data) => {
  return request({
    url: '/wms/Enquiy/GetPomlistByFileName',
    method: 'post',
    data:data
  })
}
// 	根据文件名称，获取解析列表(含Child子表)
export const GetPomlistByFileNameEX = (data) => {
  return request({
    url: '/wms/Enquiy/GetPomlistByFileNameEX',
    method: 'post',
    data:data
  })
}
// 	匹配报价
export const PostPomlistToMatchPrice = (data) => {
  return request({
    url: '/wms/Enquiy/PostPomlistToMatchPrice',
    method: 'post',
    data:data
  })
}
// 	把当前列表提交到服务器缓存
export const PostToServerForSave = (data) => {
  return request({
    url: '/wms/Enquiy/PostToServerForSave',
    method: 'post',
    data:data
  })
}
// 	获取缓存列表
export const GetTemCachelist = (data) => {
  return request({
    url: '/wms/Enquiy/GetTemCachelist',
    method: 'post',
    data:data
  })
}
// 	删除缓存列表
export const DeleteForCacheSave = (data) => {
  return request({
    url: '/wms/Enquiy/DeleteForCacheSave',
    method: 'post',
    data:data
  })
}
// 	导出询价
export const XunJiaServerForSave = (data) => {
  return request({
    url: '/wms/Enquiy/XunJiaServerForSave',
    method: 'post',
    data:data
  })
}
// 	获取询价记录
export const GetInquirieslist = (data) => {
  return request({
    url: '/wms/Enquiy/GetInquirieslist',
    method: 'post',
    data:data
  })
}
// 	根据批次获取询价列表
export const GetPriceUnquirylistByBatch = (data) => {
  return request({
    url: '/wms/Enquiy/GetPriceUnquirylistByBatch',
    method: 'post',
    data:data
  })
}
// 	更新物料后单条更新记录
export const UpdateMatAndPriceInquiry = (data) => {
  return request({
    url: '/wms/Enquiy/UpdateMatAndPriceInquiry',
    method: 'post',
    data:data
  })
}
// 	导出报价记录
export const DownLoadToExcel = (data) => {
  return request({
    url: '/wms/Enquiy/DownLoadToExcel',
    method: 'post',
    data:data
  })
}
// 	查询报价记录
export const GetOutInquirieslist = (data) => {
  return request({
    url: '/wms/Enquiy/GetOutInquirieslist',
    method: 'post',
    data:data
  })
}

